home *** CD-ROM | disk | FTP | other *** search
- on beginSprite me
- set the cursor of sprite the spriteNum of me to [member "Hand", member "Hand Mask"]
- set tVolume to the soundLevel
- set x to 182 + (tVolume * 30)
- set the locH of sprite the spriteNum of me to x
- end
-
- on endSprite me
- set the cursor of sprite the spriteNum of me to 0
- end
-
- on mouseUp me
- set the cursor of sprite the spriteNum of me to [member "Hand", member "Hand Mask"]
- end
-
- on mouseDown me
- set the cursor of sprite the spriteNum of me to [member "Closed Hand", member "Closed Hand Mask"]
- puppetSound("Volume Sound")
- repeat while the stillDown
- if (the mouseH >= 182) and (the mouseH <= 392) then
- set the locH of sprite the spriteNum of me to the mouseH
- if the machineType = 256 then
- set dx to the mouseH - 182
- set dx to dx / 30
- set the soundLevel to dx
- else
- set dx to (the mouseH - 182) * 0.80000000000000004
- set the volume of sound 1 to dx
- set the volume of sound 2 to dx
- set the volume of sound 3 to dx
- set dx to the mouseH - 182
- set dx to dx / 30
- set the soundLevel to dx
- end if
- updateStage()
- end if
- end repeat
- sound stop 2
- sound stop 1
- end
-